function myModule () {
    let num = 0
    function add () {
        num ++
        console.log(num)
    }
    function reduce () {
        num --
        console.log(num)
    }

    return {
        add,
        reduce
    }
}